package net.thxjj.adminServer.dao;

import net.thxjj.adminServer.entity.StaticBean;
import net.thxjj.adminServer.entity.aep.HeartData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HeartInfoDao {
    public void saveHeartInfo(List<HeartData> list);
    public HeartData getNewestHeartBeat(@Param("device_id")String device_id);
    public HeartData getEarliestHeartBeat(@Param("device_id")String device_id);
    public Integer getHeartBeatTotalNum(@Param("device_id")String device_id);
    public void saveSingleHeartInfo(HeartData heartData);
    public List<HeartData> getHeartBeatList(@Param("device_id")String device_id,@Param("start_time") long start_time,@Param("end_time") long end_time);
    public List<HeartData> getHeartBeatDataAtTime(@Param("device_id") String device_id, @Param("start_time") long start_time, @Param("end_time") long end_time);
    public StaticBean getBatteryVoltageStatic(@Param("device_id")String device_id,@Param("start_time") long start_time,@Param("end_time") long end_time);
    public StaticBean getRsrpStatic(@Param("device_id")String device_id,@Param("start_time") long start_time,@Param("end_time") long end_time);
    public StaticBean getEclStatic(@Param("device_id")String device_id,@Param("start_time") long start_time,@Param("end_time") long end_time);
    public StaticBean getSinrStatic(@Param("device_id")String device_id,@Param("start_time") long start_time,@Param("end_time") long end_time);
    public List<HeartData> getAllHeartBeat();
}
